package com.softtown.modules.sys.service.impl;

import com.softtown.common.service.impl.BaseServiceImpl;
import com.softtown.common.utils.ConvertUtils;
import com.softtown.modules.sys.dao.SysResDao;
import com.softtown.modules.sys.entity.SysResEntity;
import com.softtown.modules.sys.service.SysResService;
import com.softtown.modules.sys.vo.SysResVO;
import org.springframework.stereotype.Service;

/**
 * @version v1.0
 * @ProjectName: softtown-aioffice
 * @ClassName: SysResServiceImpl
 * @Description: 动态资源Service实现层
 * @Author: fuming
 * @Date: 2019/6/22 21:14
 */
@Service
public class SysResServiceImpl extends BaseServiceImpl<SysResDao, SysResEntity> implements SysResService {

    /**
     * @Title: getNotablePicsResUrl
     * @Description: 获取走马灯图片Service实现方法
     * @param @param []
     * @return @return com.softtown.modules.sys.vo.SysResVO
     * @author fuming
     * @throws
     * @date 2019/6/23 10:01
     */
    @Override
    public SysResVO getNotablePicsResUrl() {
        SysResEntity notablePicsResUrl = baseDao.getNotablePicsResUrl();
        return ConvertUtils.sourceToTarget(notablePicsResUrl, SysResVO.class);
    }
}
